improved stack metaline parsing to be more stable