now has cpabiltiy to handle str and ldr