dirty hacks to handle data