more pass by refs removed for php 5.4 compat