module layout
add n/w/r functions