improved code for opensuse requirements