added android command-line mode