updated simple examples to non-wishful thinking promise api