rewrote logic in lockpic and moved daylog functionality into lockpic