node classes reworked for mvc