remove static host and path