removed obsolete periodical, cleaned code, added own IP test, added check on lock set/remove