output handling in external module