remove useless handlers