[trap] fix trap issue with passwords
Add trap queue management lib