add script for daemon