connecting using snarl api