implement basic embed functionality