added on-update option, release 0.1.2