added mutex variant for echo (but should not work!)