adding some global functions to assist in better IO and OUTPUT_URL settings
(still needs to be cleaned up before we can use these)