now builds correctly on castor