dist generator working