removed sample code and enabled getting code from s3