extract op to separated files