outsouce puny drawing routines
adjust to outsourcing and some graph stuff