dev+: try to make erm portable