raise exception if layer already exists