added /read and /class functions