init and cleanup of arrays and strings