adding exception notification and dotenv support