updated parser for persistent layers