now actually checks if name is avaiable, rather than currently exists