clean up nupp API, improve RAM efficiency