php 5.4 array style, some bugfix