refactor some configuration scripts + add iterm2 configuration