deprecated code - moved to platform