removed redundant get_fragments_from_r
Use namespace instead of class method