dynamically grab command