remove knplabs dependency, php5.3 compatible