removes old libs and map reference