renamed state to cstate because of build exceptions that appeared to be associated with the file name