refactoring cli
fixed specs for init