add decoder, fix config_db interaction, basic sequence implementation