clean up the targetplatform a bit