added loadoptions to loadData method