lots of changes. mostly fixed preferences screen to actually work