major update to rdf_hander, refactored all functions