deprecate functions and minor fix for struct-instance