minor fixes for geoqueries and init scripts