fixes for error handling
fix for serialparam