added debug logging to getRuntimcommand