better validation of task requests + mock local service