add support to scheduled task