build painfully but successfully