moved utils to main