access file fixes for slave and master