updates to fix for php errors