removed logs, added getcurrentstate()