move reading functions to util namespace to share across all other namespaces