moved ogm into separate module