if then was error out on load :-(