debugged alloc_string
finished generic stack