expand module definitions to permit referencing internal module Error.