moved from java to platform