remove unnecessary modules and tasks