added cherry as the main server, fixed a bug in saving the resources by implementing a copy() method for the resources and the variables.