last checkin for tonight. minor implementation

for adding the tasks in pending tasks Queue