moving utils to the core module