update to work with samba