updated backward compatible support for import rules
code refactor for tasker