creating commloop worker with these functions

Should be working, needs to be tested with everything else though.