added in tick function for daemon