add demo rule for lib usage