cleanup & warnings