add in options and logging