slowly switching to rails as an api :)