now the restful API works