implement get_frag_location