new header, state saving bug fixed
version 0.2