initial library code