moved the part with cmd line analysis to utils