fixed param option and added error check for LPFM API call;