added buildrResult to handle logs and warnings