moving some stuff into utils