substr fix
app wip