added base functionality - packets handling