make file, and library functions