checks loading before calls

Also converted examples to cs5.