fixed some more rails best practices recommendations, fix