adding support for providing lock resourse, first try