fixed couple bugs and added render queues