add remote client detection