miscellaneous tweaks and file management