add inventory message
fix some bug