mock command now uses configuration