cleanup
advanced fails when apple is created, must investigate. for now use simple opt