1.39, fix current working directory; general error code; template