misc. functions and settings