basic nodes and grid generation