wrap build return in a try-catch black