misc
split out utils