adding advanced plotting routines