corrected skel to work on older php versions