complete PLY integration