introduce execWithLogging, phpdocs