change spre initialization in main.rb into from  xml