fix php5.3 issue - closes #7, #8