cleanup line endings and admin notices for unset vars