updated libs
updated code to reflect changes in libraries