added deprecation warning to restrictions
fixed getByID implementation