added auth and maxclient options