try prelocking instead of postlocking