bug fixes. added registration. added metal plot lines