remove non portable config
remove unused configs