fixing undefined dependency issues