added NINLayer, might need some tweaking