read tasks from stdin