let binlog_dir be handled internally. pass it as boolean from outside