updated to xpab from omrails