setting up server for json requests, seperated model builder