fixing errors. should parse actions differently