adding fix to allow for custom url