fix loadpath issues, should work in rails now