working on platform.dart