do some cleanup, add startup and stop api calls, for better update status