a dirty hack, maybe general later.