TODO: nick read from file