updated deprecated calls

also added new method for setting options