updated with framework code for ghetto analog reads