update to latest packages and fix some loose ends