added mapping file io for SP flows