changed ts to return library access