we should probably look up state by process