remove unneccessary code
overwrite files for specific platform