added some chrome extension magic (still needs work)