fixing library errors