converted to SDK2