removed deprecated items

opts and theme_text have been updated
change dir str