slimmed down and migrated to nail-core 0.1.0alpha1