Updated parser for library loading