fixed bug with error message
put cause of error at the start of stack trace