bug fix and gen_init can now take user specified fillValues