added logging to commands