[code_for_fun] using rebar for waiting queue