differentiate between a string and a hash as first arg