refactor pbs files and plt files