error handling to init script