converting to speclj for testing, and marginalia for docs