added modification to build project magpie