added statefile to directory and staes are working