updated tasks methods and fixed issue #57