refactoring to a more generic implementation, added query command for strip type