add support for terrain types, fix #34