added prolog connector for input and output to prolog file