improves pcalloc sizes
improves (debug) log messages
reduces amount of allocated memory