replace somes clearbricks function call by our ones