adjust debug level
adjust exitcode handling (only $? == 0 is succes now)