reverted fixes
updated minimal PHP version to 5.4