handle non-hash in attributes