update packages
cleanup code