basic Kripo script parser