more work on CC3000 to be state full