prepare build function to completion