initial code for vps daemon