cleanups and config functions for utility