added split and slice to use direct s3 file urls instead of building them fromt strings