- builtin replace lib
- sorted out library deps