fixed build error and added not abort on error