part quit and some debug and fixes