fixes for signature generation
complete sdf2 generation from sdf3