re-add preferences commands (closes #7)