adds preferences and c/h commands