added getopt function
replaced updater with FetchAPI module