fixed some types for daemon