better error reporting
fix for general plots, added example