modified extend beacon to doc