extract context