fixed command line parameters parsing and spring context