further logs added for debugging.