better way of task context / entity context parser