added  cat code to test hardware