added library loading