fix for last commit
switching some long winded stuff in NoPLc to use realloc