added settings routine, compiling, not tested