adding support for repeated tasks