change path query so it can serialize