getting task metadata