added submission daemon code