added API method to load tasks