prevent empty log for custom use