added all basic REST functionality