backwards compatibility to php < 5.5