using generic osclass function for root url