split traq into lib and app