added public library functions