Aspects of higher order gravity and holography