added type case.
change platform stuff!