working on some validation stuff