added invalidate function
release 0.0.15