Structural insights into substrate and cofactor selection by sp2771