remove old doc
retrive state info and make some use of it