some fix for rpm management