add sessionoptions for unix and windows