first commit: redefined some global key map etc.