change spider to enum