fixes for basic example
added fatal errors