fixed open pointer to actually point
fixed verbatim foreach accident in select()
fixed no return on connect()