move param to class and read them from there