fixes for some packages (reordering + adding dependencies)