specify state file with name, fix empty print