add connect for receiving post