bug fixes, add sudo on some task