added some  basic client and packet handling methods