changed daemon-script for deployment