added parse stub to parent; added stacktrace to exception log message
added some locals for readability
fixed readability
made this work for now