registration corrected after rework, changed also json mapping for gearman worker