cleaned up xmlController