add check for clash between global scope and local variables/params