catch undifined host errors
redirect if pid does not exist
fixes rawtree overflow
fixes missing host problem