fix: main() return code was eaten up and not returned to caller