better intialization, added commands declarations