Server change api

fix #337