generators + pg setup