write basic high level functions for link library