refactoring in build operation and related parts of lpms