first utility functions for geo module