added logging for executing command