mode and message handling now like __file type