working on sprite generation fixes