added task queue stuff