build system from Aidan Delaney