added callbacks to commands