make compatible with migrations