basic library to work with smb context