removed more rails boilerplate for api