Still working on agent detection
still experimenting