some code refactoring plist pendingtaskQ implementation