made cloner to catch different types of errors, extended ego script