added some missing requires and deleted g.join