adapt to extensionDec
resolve illegal access error
check for file existence
do not print stacktrace for parse exception
add missing newline after import decls