replace calls to printStackTrace with ErlLogger.error
better debug for 1163
better debug for 1164