Upgrade to 1.9

Fix api  usage
Improve messages
remove trailing semicolons