remove empty packages (to be reworked)