settings logic