some configs and cleanup