added attrs only if erb exists in options