chg: separate omalloc and resources flags