fix reading config; arm signals before doing anything in main loop