added: conditionals for privat classes/define resources