fix problem with raising module requirement errors