tests compile now, but still some functions undefined