Added name to enum,added throws,try to avoid TravisCI crash