refactoring the tasks so that the subject set-up is done in common.js