move custom functions and key bindings to separate file