corrected and cleaned up bmbr_setup_fltq functions