initial mock system implementation

Fixes an issue with the module count directive too