sending in taskDir throught __init__ rather then def run