working basic frame parser