fixed some auto-initialization stuff