fix error checks
fix error checks
prepare for the install command