fixes to some samples
added back more deprecated methods