moved libraries into different scopes