added autostart setting (issue #9)