fixed buildscript for refractor