add preferences to make it run