1. add batch write at flushing dirty slate; 2. spin couple classes into new single files