fixed capstone implementation so it's toggleable and more robust