possible fix for calling flutes

pulled relevant code for everials branch, so credit to him if it works, credit to me if I broke it