fixed condition for error catching, added alt script