remove dependencies on graphics