added the gldp function, seems working! might need some more test though
improve the help message display