fix lib tasks, remove unused stuff