sub domain fixes and specs