error when trying to match specs for local vars in other modules