better error handling
never commit production fig