layers working. still have a slow memory leak.