debug mode for samo