add record function to cloudservers class