added useServer as boolean in options, to allow use without any server