basebox altered, for php version