fixed a couple of Rails loading issues after the recent refactor