refactor createDev task to use asyncTask function