bugfix added opts