fixes register & cleans tasks