starting to turn things into an api