clean lib code
clean starting point