added parameter to change relative host