improved deployment to automate api daemon start/stop