update makeAbsolute to be cleaner