deprecate Modules class