playing nice with the user by defaulting query to tail if empty