added settings flags. need implementation and testing