nn: add network prototypes