bugfix, passing options was causing crashes