added keywords for param and fparam ... not positive it is completely robust though