fixed preferences issue, removed unnecessary files