started relocating functionality to renderjs