fix global keybaord listeners
fix command line arguments