adding script options (not fully tested)