remove dependences, create a default pool in global scope