stop sys.call from going too deep