added LOG_LEVELS and misc other stuff