fixing up preferences and shit