added platform config option and moved changes to src files