added rules mode
added global-key to rename filename