that is at the start of scripts like exports_setup) into a library function. I'm tired of duplicating it!