adapted build files for math stuff