added filelock

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>
changed visibility of methods

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>