generate random strings for core
Cleaning up code