fixes for strict php