refact parse method in PostHandler