fixes #90: throws error if require null or require a id with version