add some auth functions
use 1 based indexing for tmux