partition optimization and smooth loading