add parameter for whether to make mount thread a daemon