move options dependency logic to header so examples are aware of them too