added option for server authentication