workign on cmd line