reorganized autorun and variables to separate modules
reorganized notify to a separate module