improved some error and debug prints