moved funtions into registerMultiTask