better error handling, change example separator