added size and error handling plugins. Minor experimentation on plugins I eventually removed.