get link clicking code almost on a level with non-remote builds