builf script for dpm