lopatin integration (draft)