levgen file added, not finished yet