adding some error and state stubs