modify api on client request