move distribution specific config in main