decode manager basic implementation 
Several aux functions