improve spec url generator