preliminary implementation of setquota hook